const path = require('path');
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      //哪些文件自动引入，使用绝对路径
      patterns: [
        path.join(__dirname, './src/assets/styles/variables.less'),
        path.join(__dirname, './src/assets/styles/mixins.less')
      ]
    }
  }
})

// const path = require('path');
// const { defineConfig } = require('@vue/cli-service')
// module.exports = defineConfig({
//   lintOnSave: false,
//   transpileDependencies: true,

//   pluginOptions: {
//     'style-resources-loader': {
//       preProcessor: 'less',
//       //哪些文件自动引入，使用绝对路径
//       patterns: [
//         path.join(__dirname, './src/assets/styles/variables.less'),
//         path.join(__dirname, './src/assets/styles/mixins.less')
//       ]
//     }
//   }
// })
